<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .shake {
            animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
            transform: translate3d(0, 0, 0);
            backface-visibility: hidden;
            perspective: 1000px;
        }

        @keyframes leftToRight {
            0% {
                transform: translate(-100%);
            }

            100% {
                transform: translate(0);
            }
        }

        .come {
            animation: leftToRight 2s;
        }

        .go {
            animation: leftToRight 2s reverse;
        }
    </style>
</head>

<body>
    <div id="demo">
        Push this button to do something you shouldn't be doing:<br />

        <div :class="{ shake: Activated }">
            <button @click="noActivated = true">Click me</button>
            <span v-if="noActivated">Oh no!</span>
        </div>
    </div>
</body>
<script src="https://unpkg.com/vue@next"></script>
<script>
    const Demo = {
        data() {
            return {
                noActivated: false
            }
        }
    },
    methods:{
        handleClick(){
            this.isshow=!this.isshow
        }
    },

    Vue.createApp(Demo).mount('#demo')
</script>

</html>